import request from '@/utils/request.js'

// 登录
export const getlogin = (mobile, code) => {
  return request({
    method: 'post',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code,
    },
  })
}

export const getUserProfile = () => {
  return request({
    method: 'get',
    url: '/v1_0/user/profile',
    // headers : {
    //   Authorization : `Bearer ${getToken()}`
    // }
  })
}
